//
//  AEOrderInfoReceiveRequest.m
//  AESOLAR_IOS
//
//  Created by Bin Tang on 2024/10/28.
//  Copyright © 2024 Mr.Wang. All rights reserved.
//

#import "AEOrderInfoReceiveRequest.h"
#import "AE_Solar-Swift.h"

@interface AEOrderInfoReceiveRequest ()
@property (nonatomic, copy) NSString *orderCode;
@end

@implementation AEOrderInfoReceiveRequest

- (instancetype)initWithOrderCode:(NSString *)orderCode {
    if (self = [super init]) {
        self.orderCode = orderCode;
    }
    return self;
}

- (NSString *)requestUrl {
    return kAPP_ORDER_INFO_RECEIVE;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *params = @{@"orderCode":objectNull(self.orderCode)};
    NSString *json = [params yy_modelToJSONString];
    NSString *aesStr = [AESCrypt AES128Encrypt:json key:[AEUserCommonInfo getAesKey]];
    return @{@"requestData": aesStr};
}
@end
